import { request } from "@/utils/service"
// 查
export function getDataApi(params: any) {
  return request({
    url: "/question/list",
    method: "get",
    params
  })
}
// 增问题
export function createDataApi(data: any) {
  return request({
    url: "/question/save",
    method: "post",
    data
  })
}
// 增回复
export function createDataHFApi(data: any) {
  return request({
    url: "/question/saveReply",
    method: "post",
    data
  })
}

// 删除问题
export function delDataApi(data: any) {
  return request({
    url: "/question/delete",
    method: "post",
    data
  })
}
// 删除回复
export function delDataHFApi(data: any) {
  return request({
    url: "/question/deleteReply",
    method: "post",
    data
  })
}
